package com.baidu.structs;

import com.baidu.aip.imagesearch.AipImageSearch;
import org.json.JSONObject;

import java.util.HashMap;
import java.util.UUID;

public class AipPicUpload {

    public static void upload(String image) {
        HashMap<String, String> options = new HashMap<String, String>();
        String uuid = UUID.randomUUID().toString();
        options.put("brief", uuid);
        AipImageSearch aipClient = AipPicSearch.getInstance().getAipClient();
        aipClient.sameHqAdd(image, options);
        System.out.println("upload  brief:" + uuid);
    }
}
